<?php include "verifica.php"; ?>
<html>
<head>
	<title>ABR</title>
</head>
<body>
	<div class="box">

		<?php
			include "topo.php";

			include "menu.php";
		?>		

			<div class="formulario">
				<fieldset>
					<legend>Consulta de Descarte</legend>
						<table>
							<tr>
								<th>Código</th>
								<th>Quantidade</th>
							</tr>
							<?php 
								include "conexao.php";
								$sql_select = mysql_query("SELECT * FROM descarte ORDER BY id_item");
								while($linha = mysql_fetch_array($sql_select)){ 
								$pega_id = $linha['id'];
								$pega_id_item = $linha['id_item'];
								$pega_quantidadeItem = $linha['quantidade'];

							?>
							<tr>
								<td><?php echo $pega_id_item ?></td>
								<td align="center"><?php echo $pega_quantidadeItem ?></td>
							</tr>

							<?php } ?>

						</table>	
				</fieldset>
			</div><!--formulario-->

		<?php	
			include "rodape.php";
		?>

	</div><!--box-->
</body>
</html>